import type { RouteRecordRaw } from 'vue-router'

// 扩展路由元信息类型
interface RouteMeta {
  title?: string
  icon?: string
  roles?: string[]
  hidden?: boolean
}

// 扩展路由记录类型
export interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta' | 'children'> {
  hidden?: boolean
  meta?: RouteMeta
  children?: AppRouteRecordRaw[]
} 